import { WIN_MAIN_RENDERER_EVENT_NAME } from '@common/ipcNames';
import { mainHandle } from '@common/mainIpc';
import { addRealTimeMarkItem } from '@main/core/sqlite/modules/real_time_monitor';

export default () => {
  //添加实时标注信息
  mainHandle<any>(WIN_MAIN_RENDERER_EVENT_NAME.addRealTimeMarkItem, async (data: any) => {
    return await addRealTimeMarkItem(data.params);
  });
};
